import { debounce } from 'lodash-es'

export default {
    mounted(el, binding) {
        const { Fn, delay = 300 } = binding.value;
        el.addEventListener('click', debounce(Fn, delay))
    }
}